package com.lobov.entities;

import java.io.Serializable;

/**
 * Вектор
 *
 */
public class Vector extends Timer implements Serializable {
	
	private static final long serialVersionUID = 1L;

	public Vector(){
		super();
	}
	/**
	 * разреженный вектор
	 * @param xlength длинна вектора
	 */
	public Vector(int xlength) {
		super();
		this.values = new double[xlength];
		this.xs = new int[xlength];
		this.xlength = xlength;
	}
	
	/**
	 * сжатый вектор
	 * @param numOfElements количество элементов сжатого массива
	 * @param xlength длинна вектора
	 */
	public Vector(int numOfElements, int xlength){
		super();
		this.values = new double[numOfElements];
		this.xs = new int[numOfElements];
		this.xlength = xlength;
	}
	
	private int xlength;
	private double[] values;
	private int[] xs;
	
	public int getXlength() {
		return xlength;
	}
	public void setXlength(int xlength) {
		this.xlength = xlength;
	}
	public double[] getValues() {
		return values;
	}
	public void setValues(double[] values) {
		this.values = values;
	}
	public int[] getXs() {
		return xs;
	}
	public void setXs(int[] xs) {
		this.xs = xs;
	}
}
